import service from './request'

//统一管理应用程序中的请求

//一个请求封装成一个函数
export function user_login(params = {}) {
    return service.post('/user/login', params);
}
export let tuan_list = () => {
    return service({
        url: '/tuan/list',
        method: "GET",
        params: {
            status: 1
        }
    })
}
export function user_register(params = {}) {
    return service.post('/user/register', params);
}
export function banner_list(params = {}) {
    return service.get('/banner/list', { params });
}
export function shop_list(params = {}) {
    return service.get('/shop/list', { params });
}
export function shop_shopinfo(params = {}) {
    return service.get('/shop/shopinfo', { params });
}
export function shop_search(params = {}) {
    return service.get('/shop/search', { params });
}
export function tuan_list1(params = {}) {
    return service.get('/tuan/list', { params });
}
// 地址列表
export function address_list(params) {
    return service.get("/address/list", { params })
}
// 新增地址
export function address_add(params = {}) {
    return service.post("/address/add", params)
}
// 编辑地址
export function address_edit(params = {}) {
    return service.post("/address/edit", params)
}
// 删除地址
export function address_del(params = {}) {
    return service.post("/address/del", params)
}